<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.EditMatriculaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_id}" for="id" />
                    <h:inputText id="id" value="#{matriculaController.selected.id}" title="#{bundle.EditMatriculaTitle_id}" required="true" requiredMessage="#{bundle.EditMatriculaRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_ano}" for="ano" />
                    <h:inputText id="ano" value="#{matriculaController.selected.ano}" title="#{bundle.EditMatriculaTitle_ano}" />
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_alunosId}" for="alunosId" />
                    <h:selectOneMenu id="alunosId" value="#{matriculaController.selected.alunosId}" title="#{bundle.EditMatriculaTitle_alunosId}" required="true" requiredMessage="#{bundle.EditMatriculaRequiredMessage_alunosId}">
                        <f:selectItems value="#{alunosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_alunosId1}" for="alunosId1" />
                    <h:selectOneMenu id="alunosId1" value="#{matriculaController.selected.alunosId1}" title="#{bundle.EditMatriculaTitle_alunosId1}" required="true" requiredMessage="#{bundle.EditMatriculaRequiredMessage_alunosId1}">
                        <f:selectItems value="#{alunosController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_disciplinasId}" for="disciplinasId" />
                    <h:selectOneMenu id="disciplinasId" value="#{matriculaController.selected.disciplinasId}" title="#{bundle.EditMatriculaTitle_disciplinasId}" required="true" requiredMessage="#{bundle.EditMatriculaRequiredMessage_disciplinasId}">
                        <f:selectItems value="#{disciplinasController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_disciplinasId1}" for="disciplinasId1" />
                    <h:selectOneMenu id="disciplinasId1" value="#{matriculaController.selected.disciplinasId1}" title="#{bundle.EditMatriculaTitle_disciplinasId1}" required="true" requiredMessage="#{bundle.EditMatriculaRequiredMessage_disciplinasId1}">
                        <f:selectItems value="#{disciplinasController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_professoresId}" for="professoresId" />
                    <h:selectOneMenu id="professoresId" value="#{matriculaController.selected.professoresId}" title="#{bundle.EditMatriculaTitle_professoresId}" required="true" requiredMessage="#{bundle.EditMatriculaRequiredMessage_professoresId}">
                        <f:selectItems value="#{professoresController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                    <h:outputLabel value="#{bundle.EditMatriculaLabel_professoresId1}" for="professoresId1" />
                    <h:selectOneMenu id="professoresId1" value="#{matriculaController.selected.professoresId1}" title="#{bundle.EditMatriculaTitle_professoresId1}" required="true" requiredMessage="#{bundle.EditMatriculaRequiredMessage_professoresId1}">
                        <f:selectItems value="#{professoresController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <h:commandLink action="#{matriculaController.update}" value="#{bundle.EditMatriculaSaveLink}"/>
                <br />
                <br />
                <h:commandLink action="View" value="#{bundle.EditMatriculaViewLink}" immediate="true"/>
                <br />
                <h:commandLink action="#{matriculaController.prepareList}" value="#{bundle.EditMatriculaShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.EditMatriculaIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
